package com.amor.workpcs.controller;

import com.amor.workpcs.entity.Personal;
import com.amor.workpcs.service.PersonalService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Personal)表控制层
 *
 * @author makejava
 * @since 2021-09-14 10:59:59
 */
@RestController
@RequestMapping("personal")
public class PersonalController {
    /**
     * 服务对象
     */
    @Resource
    private PersonalService personalService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Personal selectOne(Integer id) {
        return this.personalService.queryById(id);
    }

}